package com.aloha.common.aware;

import com.aloha.springframework.beans.BeansException;
import com.aloha.springframework.beans.factory.BeanFactory;
import com.aloha.springframework.beans.factory.BeanFactoryAware;
import lombok.Data;

/**
 * @author DaiZhiHeng
 * @date 2023/7/23 22:25
 */
@Data
public class MyFactoryBeanAware implements BeanFactoryAware {

    BeanFactory beanFactory;

    @Override
    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
        this.beanFactory = beanFactory;
    }
}

